package com.jingbit.ai.bean;

import java.util.ArrayList;
import java.util.List;

public class ContactInfo {
    private String name;
    private List<String> phones;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getPhones() {
        return phones;
    }

    public void setPhones(List<String> phones) {
        this.phones = phones;
    }

    public void addPhone(String phone){
        if (phones==null){
            phones=new ArrayList<>();
        }
        phones.add(phone);
    }
}
